<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Administration/main.master"
    CodeFile="ManufacturerAdd.aspx.cs" Inherits="Tathata.Web.Administration.Administration_ManufacturerAdd" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register TagPrefix="nopCommerce" TagName="NumericTextBox" Src="Modules/NumericTextBox.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="SimpleTextBox" Src="Modules/SimpleTextBox.ascx" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="c1" ContentPlaceHolderID="cph1" runat="Server">
    <div>
        <ajaxToolkit:TabContainer runat="server" ID="ManufacturerTabs" ActiveTabIndex="0">
            <ajaxToolkit:TabPanel runat="server" ID="pnlManufacturerInfo" HeaderText="Manufacturer Info">
                <ContentTemplate>
                    <table class="adminContent">
                        <tr>
                            <td class="adminTitle">
                                Name:
                            </td>
                            <td class="adminData">
                                <nopCommerce:SimpleTextBox runat="server" ID="txtName" CssClass="adminInput" ErrorMessage="Name is required">
                                </nopCommerce:SimpleTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="adminTitle">
                                Image:
                            </td>
                            <td class="adminData">
                                <asp:FileUpload ID="fuManufacturerPicture" CssClass="adminInput" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td class="adminTitle">
                                Description:
                            </td>
                            <td class="adminData">
                                <FCKeditorV2:FCKeditor ID="txtDescription" runat="server" BasePath="~/fckeditor/"
                                    AutoDetectLanguage="false" Height="350" Width="800px">
                                </FCKeditorV2:FCKeditor>
                            </td>
                        </tr>
                        <tr>
                            <td class="adminTitle">
                                Template:
                            </td>
                            <td class="adminData">
                                <asp:DropDownList ID="ddlTemplate" AutoPostBack="False" CssClass="adminInput" runat="server">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="adminTitle">
                                Published:
                            </td>
                            <td class="adminData">
                                <asp:CheckBox ID="cbPublished" runat="server" CssClass="adminInput" Checked="True">
                                </asp:CheckBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="adminTitle">
                                Display order:
                            </td>
                            <td class="adminData">
                                <nopCommerce:NumericTextBox runat="server" ID="txtDisplayOrder" CssClass="adminInput"
                                    Value="1" RequiredErrorMessage="Display order is required" RangeErrorMessage="The value must be from -99999 to 99999"
                                    MinimumValue="-99999" MaximumValue="99999"></nopCommerce:NumericTextBox>
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </ajaxToolkit:TabPanel>
            <ajaxToolkit:TabPanel runat="server" ID="pnlManufacturerSEO" HeaderText="SEO">
                <ContentTemplate>
                    <table class="adminContent">
                        <tr>
                            <td class="adminTitle">
                                Meta keywords:
                            </td>
                            <td class="adminData">
                                <asp:TextBox ID="txtMetaKeywords" runat="server" CssClass="adminInput"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="adminTitle">
                                Meta description:
                            </td>
                            <td class="adminData">
                                <asp:TextBox ID="txtMetaDescription" runat="server" CssClass="adminInput" TextMode="MultiLine"
                                    Height="100"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="adminTitle">
                                Meta title:
                            </td>
                            <td class="adminData">
                                <asp:TextBox ID="txtMetaTitle" runat="server" CssClass="adminInput"></asp:TextBox>
                            </td>
                        </tr>
                        <tr runat="server" visible="false">
                            <td class="adminTitle">
                                SE name:
                            </td>
                            <td class="adminData">
                                <asp:TextBox ID="txtSEName" runat="server" CssClass="adminInput"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </ajaxToolkit:TabPanel>
        </ajaxToolkit:TabContainer>
    </div>
    <table class="adminContent">
        <tr>
            <td align="left" colspan="2">
                <asp:Button ID="SaveButton" runat="server" Text="Add" CssClass="adminButton" OnClick="SaveButton_Click">
                </asp:Button>
            </td>
        </tr>
    </table>
</asp:Content>
